﻿using System;
using BattleEngine2D;
using MarvinsArena.Core;

namespace Game
{
#if WINDOWS || XBOX
	static class Program
	{

		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		static void Main(string[] args)
		{
			CoreMain.Instance.ParseMainArgs(args);

			MarvinsArenaGame game = new MarvinsArenaGame(CoreMain.Instance.Tourney);
			game.Run();

			//try
			//{
			//    CoreMain.Instance.ParseMainArgs(args);

			//    MarvinsArenaGame game = new MarvinsArenaGame(CoreMain.Instance.Tourney);
			//    game.Run();

			//} catch (Exception e)
			//{
			//    using (System.IO.StreamWriter sr = new System.IO.StreamWriter("BattleEngine.log"))
			//    {
			//        sr.WriteLine(e.ToString());
			//        sr.Close();
			//    }
			//    return 1;
			//}
			//return 0;
		}
	}
}
#endif


